<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<!--Logo区域开始-->
        <div id="header">
            <img src="<%=request.getContextPath()%>/images/logo.png" alt="logo" class="left"/>
            <a href="#">[退出]</a>            
        </div>
        <!--Logo区域结束-->
        <!--导航区域开始-->
        <div id="navi">                        
            <ul id="menu">
                <!-- 主页 -->
           		 <li><a href="view/index.jsp" class="index_on"></a></li>
           		 
           		<!--  角色管理 -->
            	 <c:set var="contains" value = "no"/>
                	<c:forEach var="power" items="${power}" begin="0" end="${fn:length(power)}">
                		<c:if test="${power == 1 }">
                			<c:set var="contains" value="yes" />
                		</c:if>
                	</c:forEach>
                	<c:choose>
                		<c:when test="${contains=='yes' }">
                			<li><a href="http://localhost/netctoss/RoleSelectServlet" class="role_off"></a></li>
                			<li><a href="http://localhost/netctoss/AdminSelectAllServlet" class="admin_off"></a></li>
                		</c:when>
                		<c:otherwise>
                			<li><a href="<%=request.getContextPath() %>/view/nopower.jsp" class="role_off"></a></li>
                			<li><a href="<%=request.getContextPath() %>/view/nopower.jsp" class="admin_off"></a></li>
                		</c:otherwise>
                	</c:choose>
                	<!-- 管理员 -->
                
              <!--   资费管理 -->
                <c:set var="contains" value = "no"/>
                	<c:forEach var="power" items="${power}" begin="0" end="${fn:length(power)}">
                		<c:if test="${power == 2 }">
                			<c:set var="contains" value="yes" />
                		</c:if>
                	</c:forEach>
                	<c:choose>
                		<c:when test="${contains=='yes' }">
                			<li><a href="http://localhost/netctoss/view/fee/fee_list.jsp" class="fee_off"></a></li>
                		</c:when>
                		<c:otherwise>
                			<li><a href="<%=request.getContextPath() %>/view/nopower.jsp" class="fee_off"></a></li>
                		</c:otherwise>
                	</c:choose>
               <!--  财务账号 -->
                  <c:set var="contains" value = "no"/>
                	<c:forEach var="power" items="${power}" begin="0" end="${fn:length(power)}">
                		<c:if test="${power == 3 }">
                			<c:set var="contains" value="yes" />
                		</c:if>
                	</c:forEach>
                	<c:choose>
                		<c:when test="${contains=='yes' }">
                			<li><a href="http://localhost/netctoss/view/account/account_list.jsp" class="account_off"></a></li>
                		</c:when>
                		<c:otherwise>
                			<li><a href="<%=request.getContextPath() %>/view/nopower.jsp" class="account_off"></a></li>
                		</c:otherwise>
                	</c:choose>
                	<!-- 业务账号 -->
                	  <c:set var="contains" value = "no"/>
                	<c:forEach var="power" items="${power}" begin="0" end="${fn:length(power)}">
                		<c:if test="${power == 4 }">
                			<c:set var="contains" value="yes" />
                		</c:if>
                	</c:forEach>
                	<c:choose>
                		<c:when test="${contains=='yes' }">
                			 <li><a href="http://localhost/netctoss/view/service/service_list.jsp" class="service_off"></a></li>
                		</c:when>
                		<c:otherwise>
                			<li><a href="<%=request.getContextPath() %>/view/nopower.jsp" class="service_off"></a></li>
                		</c:otherwise>
                	</c:choose>
                	<!-- 账单管理 -->
                	<c:set var="contains" value = "no"/>
                	<c:forEach var="power" items="${power}" begin="0" end="${fn:length(power)}">
                		<c:if test="${power == 5 }">
                			<c:set var="contains" value="yes" />
                		</c:if>
                	</c:forEach>
                	<c:choose>
                		<c:when test="${contains=='yes' }">
                			 <li><a href="http://localhost/netctoss/view/bill/bill_list.jsp" class="bill_off"></a></li>
                		</c:when>
                		<c:otherwise>
                			<li><a href="<%=request.getContextPath() %>/view/nopower.jsp" class="bill_off"></a></li>
                		</c:otherwise>
                	</c:choose>
                	<!-- 报表管理 -->
                	<c:set var="contains" value = "no"/>
                	<c:forEach var="power" items="${power}" begin="0" end="${fn:length(power)}">
                		<c:if test="${power == 6 }">
                			<c:set var="contains" value="yes" />
                		</c:if>
                	</c:forEach>
                	<c:choose>
                		<c:when test="${contains=='yes' }">
                			 <li><a href="http://localhost/netctoss/view/report/report_list.jsp" class="report_off"></a></li>
                		</c:when>
                		<c:otherwise>
                			<li><a href="<%=request.getContextPath() %>/view/nopower.jsp" class="report_off"></a></li>
                		</c:otherwise>
                	</c:choose>
                	<li><a href="<%=request.getContextPath() %>/AdminSelectSelServlet" class="information_off"></a></li>
                	<li><a href="<%=request.getContextPath() %>/view/user/user_modi_pwd.jsp" class="password_off"></a></li>
            </ul>            
        </div>
        <!--导航区域结束-->
</body>
</html>